package com.neusoft.hifly.commons.database;

/**
 * Title: ZSync Data Exchange Platform
 * <p>
 * Description: 触发器工具类
 * <p>
 * Copyright: Copyright (c) 2011
 * <p>
 * Company: 东软汉枫
 *
 * @author lh_neu
 * @version 1.0.0
 */
public final class TriggerUtil {

	/**
	 * 触发器标识 oracle
	 */
	public static final String TRI_NEW_ORACLE = ":new.";

	/**
	 * 触发器标识 oracle
	 */
	public static final String TRI_OLD_ORACLE = ":old.";

	/**
	 * 触发器标识 mysql
	 */
	public static final String TRI_NEW_MYSQL = "new.";

	/**
	 * 触发器标识 mysql
	 */
	public static final String TRI_OLD_MYSQL = "old.";

	/**
	 * 触发器标识 sqlserver
	 */
	public static final String TRI_NEW_SQLSERVER = "inserted.";

	/**
	 * 触发器标识 sqlserver
	 */
	public static final String TRI_OLD_SQLSERVER = "deleted.";

	private static TriggerUtil instance;

	/**
	 * 默认构造函数
	 */
	private TriggerUtil() {
	}

	/**
	 * 获取单例对象
	 *
	 * @return 对象
	 */
	public synchronized static TriggerUtil getInstanse() {
		if (TriggerUtil.instance == null) {
			TriggerUtil.instance = new TriggerUtil();
		}
		return TriggerUtil.instance;
	}

}
